<template>
  <div class="app-list">
    <a-list
      :grid="{ gutter: 24, lg: 3, md: 2, sm: 1, xs: 1 }"
      :dataSource="dataSource">
      <a-list-item slot="renderItem" slot-scope="item, index">
        <a-card :hoverable="true">
          <a-card-meta>
            <div style="margin-bottom: 3px" slot="title">{{ item.title }}</div>
            <a-avatar class="card-avatar" slot="avatar" :src="item.avatar" size="small"/>
            <div class="meta-cardInfo" slot="description">
              <div>
                <p>任务详情：</p>
                <p>任务内容</p>
              </div>
            </div>
          </a-card-meta>
        </a-card>
      </a-list-item>
    </a-list>

  </div>
</template>

<script>
  const dataSource = []
  for (let i = 1; i < 4; i++) {
    dataSource.push({
      title: '任务',
      avatar: 'https://img.cjyun.org/a/10008/202107/7c7a7cdf967efb31a3d70db97a808806.png',
      activeUser: 17,
      newUser: 1700
    })
  }

  export default {
    name: "Project",
    components: {},
    data() {
      return {
        dataSource,
        value1:true
      }
    }
  }
</script>

<style lang="less" scoped>

  .app-list {

    .meta-cardInfo {
      zoom: 1;
      margin-top: 6px;

      > div {
        position: relative;
        text-align: left;
        float: left;
        width: 100%;

        p {
          line-height: 260px;
          font-size: 24px;
          margin: 0;

          &:first-child {
            color: rgba(0, 0, 0, .45);
            font-size: 22px;
            line-height: 20px;
            margin-bottom: 4px;
          }
        }

      }
    }
  }

</style>